package com.zzyl.nursing.controller;

import com.zzyl.nursing.service.IDeviceDataService;
import com.zzyl.nursing.service.IDeviceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("cleanHistoryDeviceData")
public class CleanHistoryDeviceData {
    @Autowired
    private IDeviceDataService deviceService;
    public void cleanData(Integer minute) {
        deviceService.cleanOldData(minute);
    }
}
